/**
 * This is a generated class and is not intended for modification.  To customize behavior
 * of this service wrapper you may modify the generated sub-class of this class - GoodsReceivedMaster.as.
 */
package com.service
{
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper;
import com.adobe.serializers.utility.TypeUtility;
import com.model.valueObjects.VoGoodsReceived;
import com.model.valueObjects.VoTrasactionMaster;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.remoting.Operation;
import mx.rpc.remoting.RemoteObject;

import mx.collections.ItemResponder;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;

[ExcludeClass]
internal class _Super_GoodsReceivedMaster extends com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper
{

    // Constructor
    public function _Super_GoodsReceivedMaster()
    {
        // initialize service control
        _serviceControl = new mx.rpc.remoting.RemoteObject();

        // initialize RemoteClass alias for all entities returned by functions of this service
        com.model.valueObjects.VoGoodsReceived._initRemoteClassAlias();
        com.model.valueObjects.VoTrasactionMaster._initRemoteClassAlias();

        var operations:Object = new Object();
        var operation:mx.rpc.remoting.Operation;

        operation = new mx.rpc.remoting.Operation(null, "getGRForCRDB");
         operation.resultType = Object;
        operations["getGRForCRDB"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "generateGrCode");
         operation.resultType = Object;
        operations["generateGrCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "addNewGR");
         operation.resultType = Object;
        operations["addNewGR"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "editGR");
         operation.resultType = Object;
        operations["editGR"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "addNewTransactionIn");
         operation.resultType = Object;
        operations["addNewTransactionIn"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "updateStockBeforeEditGR");
         operation.resultType = Object;
        operations["updateStockBeforeEditGR"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "updateStockAfterGR");
         operation.resultType = Object;
        operations["updateStockAfterGR"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "deleteGR");
         operation.resultType = Object;
        operations["deleteGR"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getAllGR");
         operation.resultElementType = com.model.valueObjects.VoGoodsReceived;
        operations["getAllGR"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getGRByCode");
         operation.resultType = com.model.valueObjects.VoGoodsReceived;
        operations["getGRByCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getAllTransactions");
         operation.resultElementType = com.model.valueObjects.VoTrasactionMaster;
        operations["getAllTransactions"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "checkPOStatus");
         operation.resultType = Object;
        operations["checkPOStatus"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "checkProductStatus");
         operation.resultType = Object;
        operations["checkProductStatus"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "deleteTransactionIn");
         operation.resultType = Object;
        operations["deleteTransactionIn"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getPOListforGR");
         operation.resultType = Object;
        operations["getPOListforGR"] = operation;

        _serviceControl.operations = operations;
        _serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;
        _serviceControl.source = "GoodsReceivedMaster";
        _serviceControl.endpoint = "gateway.php";
        destination = "GoodsReceivedMaster";



         model_internal::initialize();
    }

    /**
      * This method is a generated wrapper used to call the 'getGRForCRDB' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getGRForCRDB(supplierFk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getGRForCRDB");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(supplierFk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'generateGrCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function generateGrCode() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("generateGrCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'addNewGR' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function addNewGR(VObject:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("addNewGR");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObject) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'editGR' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function editGR(VObject:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("editGR");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObject) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'addNewTransactionIn' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function addNewTransactionIn(VObjectTR:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("addNewTransactionIn");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObjectTR) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'updateStockBeforeEditGR' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function updateStockBeforeEditGR(grn_detserialnumber:Object, po_detserialnumber:Object, pro_serialnumber:Object, qty:Object, warehouse_serialnumber_fk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("updateStockBeforeEditGR");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(grn_detserialnumber,po_detserialnumber,pro_serialnumber,qty,warehouse_serialnumber_fk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'updateStockAfterGR' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function updateStockAfterGR(grn_detserialnumber:Object, po_detserialnumber:Object, pro_serialnumber:Object, gr_qty:Object, warehouse_serialnumber_fk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("updateStockAfterGR");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(grn_detserialnumber,po_detserialnumber,pro_serialnumber,gr_qty,warehouse_serialnumber_fk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'deleteGR' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function deleteGR(VObject:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("deleteGR");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObject) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getAllGR' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getAllGR() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getAllGR");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getGRByCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getGRByCode(gr_serialnumber:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getGRByCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(gr_serialnumber) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getAllTransactions' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getAllTransactions() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getAllTransactions");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'checkPOStatus' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function checkPOStatus(po_detserialnumber_fk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("checkPOStatus");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(po_detserialnumber_fk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'checkProductStatus' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function checkProductStatus(po_detserialnumber_fk:Object, pro_serialnumber_fk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("checkProductStatus");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(po_detserialnumber_fk,pro_serialnumber_fk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'deleteTransactionIn' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function deleteTransactionIn(gr_do_detserialnumber_fk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("deleteTransactionIn");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(gr_do_detserialnumber_fk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getPOListforGR' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getPOListforGR(cus_fk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getPOListforGR");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(cus_fk) ;

        return _internal_token;
    }
     
}

}
